package com.htu.courseService.websocket.system.handler;
import com.htu.courseService.websocket.config.SocketMsg;
import com.htu.courseService.websocket.config.SocketUtil;
import com.htu.courseService.websocket.system.enums.ServerOperationEnum;
import io.netty.channel.ChannelHandlerContext;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.stereotype.Component;

/**
 * Created By JNNarrator on 2024/9/21 23:58
 * email: jiangn09@chinatelecom.cn
 */
@Component("exception")
public class ExceptionHandler implements SystemHandler {
	
	@Override
	public void handle(SocketMsg<?> socketMsg, ChannelHandlerContext ctx) {
		SocketUtil.ctx(ctx).sendMsg(SocketMsg.build(ServerOperationEnum.EXCEPTION));
	}
}
